FROM php:fpm
RUN docker-php-ext-install pdo_mysql
RUN mkdir /app &&mkdir -p /app/system/framework
COPY ./index.php /app/index.php
COPY ./nginx.php /nginx.php
COPY ./build.sh .
VOLUME ["/app/system", "/app/system/framework"]
RUN chmod +x ./build.sh
RUN chmod a+rw /app
CMD ["./build.sh"]